   $(function(){
    	 $.fn.extend({
            simpleSlider: function()
            {
                var options = $.extend({}, $.fn.extend.options);

                return this.each(function()
                {
                    var li = $('ul.'+options.class_name+' li', this);
                    var count = li.length;

                    if (count <= options.num_rows)
                    {
                        $('a.go-next, a.go-prev', this).remove();
                        return;
                    }

                    var nextBtn = $('a.go-next', this);

                    nextBtn.parent().attr('rel', 0);

                    $('a.go-next, a.go-prev', this).click(function()
                    {
						li.hide();
                        var parent = $(this).parent();
                        var index = parseInt($(this).parent().attr('rel'));

                        if ($(this).hasClass('go-next')){

                            if (index + options.num_rows >= count)
                            {
                                index = -options.num_rows;
                            }

                            for (var i=0;i<options.num_rows;i++)
                            {
                                li.eq(index + options.num_rows + i).fadeIn();
                            }
                            var next = index + options.num_rows;
                            if (next >= count)
                            {
                                next = 0;
                            }

                            parent.attr('rel', next);
                        }
                        else
                        {
                            var mod;
                            if (index <= 0)
                            {
                                mod = (count % options.num_rows);
                                if (mod == 0)
                                {
                                    index = count + 1;
                                }
                                else
                                {
                                    index = count + 1;
                                }
                            }
                            for (var i=0;i<options.num_rows;i++)
                            {
                                li.eq(index - options.num_rows + i).fadeIn();
                            }
                            var prev = index - options.num_rows;
                            if (prev < 0)
                            {
                                mod = (count % options.num_rows);
                                if (mod != 0)
                                {
                                    count += 1;
                                }
                                prev = count - options.num_rows;
                                //prev = Math.max(0, prev);
                            }

                            parent.attr('rel', prev);
                        }
                        return false;
                    });
                });
            }
        });
    });

function isValidEmailAddress(emailAddress)
{
	var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
	return pattern.test(emailAddress);
}